package com.wordLearning.word.infra.basic.service;

import com.wordLearning.word.infra.basic.entity.FavoriteWord;
import com.wordLearning.word.infra.basic.entity.Word;

import java.util.List;

/**
 * (FavoriteWord)表服务接口
 *
 * @author makejava
 * @since 2025-03-22 21:56:59
 */
public interface FavoriteWordService {

    /**
     * 通过ID查询单条数据
     *
     * @param recordId 主键
     * @return 实例对象
     */
    FavoriteWord queryById(Integer recordId);

    /**
     * 新增数据
     *
     * @param favoriteWord 实例对象
     * @return 实例对象
     */
    FavoriteWord insert(FavoriteWord favoriteWord);

    /**
     * 修改数据
     *
     * @param favoriteWord 实例对象
     * @return 实例对象
     */
    FavoriteWord update(FavoriteWord favoriteWord);

    /**
     * 通过主键删除数据
     *
     * @param recordId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer recordId);

    int deleteByCondition(Integer wordId);

    int countByCondition(FavoriteWord favoriteWord);

    List<FavoriteWord> queryPage(FavoriteWord favoriteWord, int start, Integer pageSize);

}
